//
//  FollowItem.m
//  IntelligenceCommunity
//
//  Created by zhangpei on 16/3/14.
//  Copyright © 2016年 zhangpei. All rights reserved.
//

#import "FollowItem.h"
#import "ViewHelper.h"
#import "UtilityConfig.h"


@implementation FollowItem
@synthesize countLabel, categoryLabel, itemButton;

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        [self initView];
    }
    return self;
}

- (void)initView
{
    countLabel = [ViewHelper superView:self withFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height*2/3) withText:nil withBackgroundColor:[UIColor clearColor] withTextColor:nil withFont:[UIFont systemFontOfSize:14] withTextAlignment:NSTextAlignmentCenter];
    
    categoryLabel = [ViewHelper superView:self withFrame:CGRectMake(0, self.bounds.size.height*2/3, self.bounds.size.width, self.bounds.size.height/3) withText:nil withBackgroundColor:[UIColor clearColor] withTextColor:COLORRGBA(119, 119, 119, 1) withFont:[UIFont systemFontOfSize:10] withTextAlignment:NSTextAlignmentCenter];
    
    itemButton = [ViewHelper superView:self withFrame:self.bounds withNormalImage:nil withNormalBackgroundImage:nil withBackgroundColor:nil withTitle:nil withFont:nil withTag:0 withTitleColor:nil withTitleAlignment:NSNotFound];
}



@end
